package vip.ifmm.lehouse.user.service.event;

import org.springframework.context.ApplicationEvent;

/**
 * 发送注册验证码事件
 *
 * @author Fish
 * <p>Email: fishinlove@163.com</p>
 * <p>created by 2019/06/17 00:24:42</p>
 */
public class SendRegisterCodeEvent extends ApplicationEvent {

    private String toWho = null;
    private String code = null;

    // 将指定的邮件作为事件源
    public SendRegisterCodeEvent(String toWho, String code) {
        super(toWho);
        this.toWho = toWho;
        this.code = code;
    }

    public String getToWho() {
        return toWho;
    }

    public String getCode() {
        return code;
    }
}
